﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Daphne.Modularity;
using Daphne.GameShared;
using Microsoft.Practices.Unity;

namespace Daphne.MiddleLayerModule
{
    /// <summary>
    /// Middle Layer Module
    /// </summary>
    public class MiddleLayerModule: ModuleBase
    {
        /// <summary>
        /// Initialization of middle layer module
        /// </summary>
        public override void Initialize()
        {
            // resolve and register the instance of game editor
            IGameEditor gameEditor = Unity.Resolve<GameEditor>();
            Unity.RegisterInstance<IGameEditor>(gameEditor);

            // resolve instance for LicenseParser
            ILicensesParser parser = Unity.Resolve<LicensesParser>();
            Unity.RegisterInstance<ILicensesParser>(parser);
        }
    }
}
